<template>
  <div class="bestbox">
    <!-- 头部 -->
    <div class="topbox">
        <div class="topCenter">
          <div class="boxsahng">您好，刘先生(女士)</div>
          <div class="boxxia">这是我们为您定制的</div>
        </div>
        <div class="BuyCarWay">购车方案</div>
    </div>
    <!-- <div>购物车方案</div> -->
    <div class="CenterText">
      <div class="boxaa">
        <div class="centerbvox">
          <div class="boxLeftRight">
            <div class="right">新车</div>
            <div class="left">
              途观L2021年新款舒适版
            </div>
          </div>
          <div class="rightTextaa">19.8万</div>
        </div>
        <div class="centerbvox">
          <div class="boxLeftRight">
            <div class="OldCar">旧车</div>
            <div class="left">
              朗逸启航舒适版
            </div>
          </div>
          <div class="rightTextaa">9.8万</div>
        </div>
        <div class="bottomBox">
          <div class="bottomBoxLeft">车款金额</div>
          <div class="bottomBoxRight">15.28万</div>
        </div>
      </div>
      <!-- 第二个卡片 -->
      <div class="boxaa">
        <div class="boxScondYears">
          <div class="picBox">贷款</div>
          <div class="years">2年分期</div>
          <div class="fristBox">首付</div>
          <div class="money">14340</div>
        </div>
        <div class="BoxScondMondth">
            <div class="month">月供</div>
            <div class="money">5769</div>
          </div>
        <div class="centerbvox">
          <div class="boxLeftRight">
            <div class="right">置换</div>
            <div class="left">
              置换补贴
            </div>
          </div>
          <div class="rightTextaa">7000</div>
        </div>
        <div class="centerbvox">
          <div class="boxLeftRight">
            <div class="OldCar">旧车</div>
            <div class="left">
              第三方责任险(100万)
            </div>
          </div>
          <div class="rightTextaa">1500</div>
        </div>
         <div class="centerbvox">
          <div class="boxLeftRight">
            <div class="OldCar">延保</div>
            <div class="left">
              全面保障(2次)
            </div>
          </div>
          <div class="rightTextaa">4800</div>
        </div>
        <div class="centerbvox">
          <div class="boxLeftRight">
            <div class="OldCar">其他</div>
            <div class="left">
              车辆清洗两次
            </div>
          </div>
          <div class="rightTextaa">200</div>
        </div>
        <div class="bottomBox">
          <div class="bottomBoxLeft">车款金额</div>
          <div class="bottomBoxRight">15.28万</div>
        </div>
      </div>
      <!-- 第三个卡片 -->
      <div class="thereBox">
        <div class="boxLeft">发送</div>
        <div class="boxRight">保存</div>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  data () {
    return {
      imgSrc: require('../assets/顶部背景-蓝.png'),
      imgCenter: require('../assets/儿童摄影可爱高清壁纸 - 1.jpg')
    }
  }
}
</script>
<style lang="less" scoped>
.bestbox{
   background-color: #377df1;
  .topbox{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url(../assets/顶部背景-蓝.png);
    background-size:100% 100%;
    background-repeat:no-repeat;
    width: 375px;
    height: 150px;
    .BuyCarWay{
      position: absolute;
      left: 50%;
      bottom: 0;
      transform: translate(-50%);
      width: 254px;
      height: 34px;
      line-height: 34px;
      text-align: center;
      font-size: 14px;
      color: #ffffff;
      background-image: url(../assets/标题色块.png);
      background-size:100% 100%;
      background-repeat:no-repeat;
    }
    .topCenter{
      width: 150px;
      height: 50px;
      .boxsahng{
        width: 150px;
        height: 25px;
        line-height: 25px;
        text-align: center;
        font-size: 16px;
        font-weight: 700;
        color: #ffffff;
      }
      .boxxia{
        width: 150px;
        height: 25px;
        line-height: 25px;
        text-align: center;
        font-size: 16px;
        font-weight: 700;
        color: #ffffff;
      }
    }
  }
  .CenterText{
    position: relative;
    background-image: url(../assets/背景-云-渐变蓝.png);
    background-size:100% 100%;
    background-repeat:no-repeat;
    border: 1px solid #377df1;
    .boxaa{
      width: 330px;
      margin: 0 auto;
      margin-top: 60px;
      background-color: #ffffff;
      border-radius: 10px;
      .centerbvox{
        display: flex;
        justify-content: space-between;
        width: 300px;
        height: 58px;
        line-height: 58px;
        margin: 0 auto;
        border-bottom: 1px solid #f4f7fd;
        .boxLeftRight{
          display: flex;
          justify-content: center;
          align-items: center;
          .left{
            width: 180px;
            height: 40px;
            font-size: 14px;
            line-height: 40px;
            text-align: left;
            padding-left: 10px;
          }
        }
        .rightTextaa{
        width: 50px;
        height: 30px;
        text-align: right;
        line-height: 30px;
        line-height: 50px;
        font-size: 14px;
        }
        .right{
        width: 32px;
        height: 22px;
        line-height: 22px;
        text-align: center;
        color: #D53A7F;
        background-color: #f9e2ec;
        font-size: 12px;
        line-height: 20px;
        }
        .OldCar{
        width: 32px;
        height: 22px;
        line-height: 22px;
        text-align: center;
        color: #1B80C6;
        background-color: #ddecf7;
        font-size: 12px;
        line-height: 20px;
        }
      }
      .bottomBox{
        display: flex;
        justify-content: space-between;
        width: 300px;
        height: 58px;
        line-height: 58px;
        margin: 0 auto;
        border-bottom: 1px solid #f4f7fd;
        .bottomBoxLeft{
          width: 60px;
          height: 20px;
          font-size: 14px;
          font-weight: 700;
          margin-left: 42px;
        }
        .bottomBoxRight{
          width: 60px;
          height: 20px;
          font-size: 14px;
          font-weight: 700;
          color: #e8541e;
          text-align: right;
        }
      }
      // 第二个卡片前两行
      .boxScondYears{
        display: flex;
        justify-content: space-between;
        align-items: center;
         width: 300px;
        height: 58px;
        line-height: 58px;
        margin: 0 auto;
        border-bottom: 1px solid #f4f7fd;
        .picBox{
        width: 32px;
        height: 22px;
        line-height: 22px;
        text-align: center;
        color: #C7A61A;
        background-color: #f7f2dd;
        font-size: 12px;
        line-height: 22px;
        }
        .years{
        width: 50px;
        height: 22px;
        line-height: 22px;
        text-align: center;
        font-size: 12px;
        line-height: 22px;
        }
        .fristBox{
        width: 50px;
        height: 22px;
        line-height: 22px;
        text-align: center;
        font-size: 12px;
        line-height: 22px;
        }
        .money{
        width: 60px;
        height: 22px;
        line-height: 22px;
        text-align: right;
        font-size: 12px;
        line-height: 22px;
        }
      }
      // 第二个月供
      .BoxScondMondth{
        display: flex;
        justify-content: space-between;
        align-items: center;
         width: 300px;
        height: 58px;
        line-height: 58px;
        margin: 0 auto;
        border-bottom: 1px solid #f4f7fd;
        .month{
          width: 193px;
          height: 22px;
          line-height: 22px;
          font-size: 14px;
          text-align: right;
        }
        .money{
        width: 60px;
        height: 22px;
        line-height: 22px;
        text-align: right;
        font-size: 12px;
        line-height: 22px;
        }
      }
    }
    // 第三个卡片
    .thereBox{
      display: flex;
      justify-content: space-between;
      width: 330px;
      margin: 0 auto;
      margin-top: 60px;
      margin-bottom: 60px;
      .boxLeft{
        width: 160px;
        height: 38px;
        line-height: 38px;
        border-radius: 38px;
        text-align: center;
        font-size: 16px;
        color: #ffff;;
        background-color: #498ef3;
      }
      .boxRight{
        width: 160px;
        height: 38px;
        line-height: 38px;
        border-radius: 38px;
        text-align: center;
        font-size: 16px;
        color: #ffff;;
        background-color: #498ef3;
      }
    }
  }
}
</style>
